<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/styles/css/default.css">
<title>修改密码</title>
</head>
<body>
<div class="main">
<div class="main_title"><b>你当前的位置</b>：修改密码</div>
<s:form action="cpwd!sub.action" namespace="/user" >
	<table align="center"  cellpadding="1" cellspacing="1" class="tablelist">
		<s:if test="user.id != null">
			<s:hidden name="user.id"/>
			<s:hidden name="user.name"/>
			<s:hidden name="user.gxdm"/>
			<s:hidden name="user.userType"/>
			<s:hidden name="user.userInfo.university"/>
		</s:if>
		<s:if test="hasErrors()">
			<s:if test="hasFieldErrors()">
				<tr align="center">
					<td class="textError"><font color="red" size="4"><s:fielderror/></font></td>
					<td class="tableHeader2"></td>
				</tr>
			</s:if>
			<s:if test="hasActionErrors">
				<tr align="center">
					<td class="textError"><font color="blue"><s:actionerror/></font></td>
					<td class="tableHeader2"></td>
				</tr>
			</s:if>	
		</s:if>
		<tr class="listr2">
	        <td width="30%" align="right"><s:label>账户名 </s:label></td>
			<td align="left" class="listr5"><s:property value="user.name"/></td>
		</tr>
		<tr class="listr2" style="display:none">
			<td align="right"><s:label>账户类别 </s:label></td>
			<td align="left" class="listr5"><s:select name="user.userType" disabled="true" id="accountType" list="userTypes"/></td>
		</tr>
		<tr class="listr2">
			<td align="right"><span class="fontred">*</span><s:label>原密码 </s:label></td>
			<td align="left" class="listr5"><s:password name="user.pwd" value="" validate="{type:'required'}" cssStyle="width:154px; border:1px solid #7F9DB9; height:16px;padding-top:2px;margin-top:2px"></s:password> </td>
		</tr>
		<tr class="listr2">
			<td align="right"><span class="fontred">*</span><s:label>新密码 </s:label></td>
			<td align="left" class="listr5"><s:password name="npwd" validate="{type:'password', config:{allowBlank:false}}" cssStyle="width:154px; border:1px solid #7F9DB9; height:16px;padding-top:2px;margin-top:2px"></s:password> （这里设置的密码为系统本地密码，为6-20位数字或字母）</td>
		</tr>
		<tr class="listr2">
			<td align="right"><span class="fontred">*</span><s:label>确认密码 </s:label></td>
			<td align="left" class="listr5"><s:password name="nfpwd" validate="{type:'password', config:{allowBlank:false}}" cssStyle="width:154px; border:1px solid #7F9DB9; height:16px;padding-top:2px;margin-top:2px"></s:password> （这里设置的密码为系统本地密码，为6-20位数字或字母）</td>
		</tr>
		<tr class="listr4">    		
	    	<td colspan="2">
				<s:submit cssClass="btn" onmouseover="this.className='btn_hover'" onmouseout="this.className='btn'" value="确定" ></s:submit>
			</td>
   		 </tr>
	</table>
</s:form>	
</body>
</html>